Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: Auth Methods List view #9617

Merged
merged 33 commits into from
Feb 17, 2021
Merged

ui: Auth Methods List view #9617

merged 33 commits into from
Feb 17, 2021

Conversation

kaxcode
Copy link
Contributor

@kaxcode kaxcode commented Jan 22, 2021

  • Creates a Auth methods route and tab
  • Adds in JWT and Open ID logos into codebase
  • Create Auth method List and SearchBar components
  • Implements /acls/auth-method/:id and /acls/auth-methods endpoints

auth_method_index

Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think code-wise this looks great. I noticed a few naming things which would be good to fix up, and while I was doing that I noticed that we might not be mocking the API responses correctly here? The one that is most important is the MaxTokenTTL property, as if that is not in the list responses, then we won't be able to show that value in our listings.

Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on all this 👍 , I left a few nits but nothing major, mainly word-y things.

oidc: (item, value) => item.Type === value,
},
source: {
local: (item, value) => item.TokenLocality === value || item.TokenLocality === '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we figure out if Consul ever responds with an empty value for TokenLocality?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it responds with empty ''

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that the mocks where you see that empty value or consul itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, right. I need to verify this with BE dev.

ui/packages/consul-ui/translations/en-us.yaml Show resolved Hide resolved
Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! LGTM!

@kaxcode kaxcode merged commit 1507dd8 into master Feb 17, 2021
@kaxcode kaxcode deleted the ui/feature/auth-methods branch February 17, 2021 18:56
@hashicorp-ci
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/328626.

johncowen added a commit that referenced this pull request Aug 25, 2021
During #9617 we added a list view only for AuthMethods, but not a detail view. We did add the Adapter/Serializer that collected/reshaped data for a detail view.

The test for this serializer was skipped here, but I'm not sure why.

We then added #9845 which began to use this AuthMethod Serializer, but we didn't go back to finish up the skipped test here either.

This PR unskips this test and finishes off the test correctly.
hc-github-team-consul-core pushed a commit that referenced this pull request Aug 25, 2021
During #9617 we added a list view only for AuthMethods, but not a detail view. We did add the Adapter/Serializer that collected/reshaped data for a detail view.

The test for this serializer was skipped here, but I'm not sure why.

We then added #9845 which began to use this AuthMethod Serializer, but we didn't go back to finish up the skipped test here either.

This PR unskips this test and finishes off the test correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants